package com.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class Memberbuyrecord implements Serializable {
    private String mbno;

    private Date mbtime;

    private String prno;

    private String mno;

    private Integer mevaluate;

    private Integer mbcost;

    private Member member;

    private Expert expert;

    public Member getMember() {
        return member;
    }

    public void setMember(Member member) {
        this.member = member;
    }

    public Expert getExpert() {
        return expert;
    }

    public void setExpert(Expert expert) {
        this.expert = expert;
    }

    private static final long serialVersionUID = 1L;

    public Memberbuyrecord() {
    }

    public Memberbuyrecord(String mbno, Date mbtime, String prno, String mno, Integer mevaluate, Integer mbcost) {
        this.mbno = mbno;
        this.mbtime = mbtime;
        this.prno = prno;
        this.mno = mno;
        this.mevaluate = mevaluate;
        this.mbcost = mbcost;
    }

    public String getMbno() {
        return mbno;
    }

    public void setMbno(String mbno) {
        this.mbno = mbno;
    }

    public Date getMbtime() {
        return mbtime;
    }

    public void setMbtime(Date mbtime) {
        this.mbtime = mbtime;
    }

    public String getPrno() {
        return prno;
    }

    public void setPrno(String prno) {
        this.prno = prno;
    }

    public String getMno() {
        return mno;
    }

    public void setMno(String mno) {
        this.mno = mno;
    }

    public Integer getMevaluate() {
        return mevaluate;
    }

    public void setMevaluate(Integer mevaluate) {
        this.mevaluate = mevaluate;
    }

    public Integer getMbcost() {
        return mbcost;
    }

    public void setMbcost(Integer mbcost) {
        this.mbcost = mbcost;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Memberbuyrecord other = (Memberbuyrecord) that;
        return (this.getMbno() == null ? other.getMbno() == null : this.getMbno().equals(other.getMbno()))
            && (this.getMbtime() == null ? other.getMbtime() == null : this.getMbtime().equals(other.getMbtime()))
            && (this.getPrno() == null ? other.getPrno() == null : this.getPrno().equals(other.getPrno()))
            && (this.getMno() == null ? other.getMno() == null : this.getMno().equals(other.getMno()))
            && (this.getMevaluate() == null ? other.getMevaluate() == null : this.getMevaluate().equals(other.getMevaluate()))
            && (this.getMbcost() == null ? other.getMbcost() == null : this.getMbcost().equals(other.getMbcost()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMbno() == null) ? 0 : getMbno().hashCode());
        result = prime * result + ((getMbtime() == null) ? 0 : getMbtime().hashCode());
        result = prime * result + ((getPrno() == null) ? 0 : getPrno().hashCode());
        result = prime * result + ((getMno() == null) ? 0 : getMno().hashCode());
        result = prime * result + ((getMevaluate() == null) ? 0 : getMevaluate().hashCode());
        result = prime * result + ((getMbcost() == null) ? 0 : getMbcost().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", mbno=").append(mbno);
        sb.append(", mbtime=").append(mbtime);
        sb.append(", prno=").append(prno);
        sb.append(", mno=").append(mno);
        sb.append(", mevaluate=").append(mevaluate);
        sb.append(", mbcost=").append(mbcost);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}